<template>
  <div>
    <div>
      <h4>呼吸功能</h4>
      <el-row type="flex" justify="space-between">
        <el-col>
          <span>呼吸功能：</span>
          <div>
            <el-radio-group v-model="pgForm.respiratory_function_radio2">
              <el-radio label="配合"></el-radio>
              <el-radio label="不配合"></el-radio>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :span="7">
          <span>呼吸类型：</span>
          <div class="grid-content">
            <el-radio-group v-model="pgForm.respiratory_function_radio1">
              <el-radio style="display: block;margin-bottom: 15px;" label="胸式"></el-radio>
              <el-radio style="display: block;margin-bottom: 15px;" label="胸腹式"></el-radio>
              <el-input v-model="pgForm.respiratory_function_input1" placeholder="备注"></el-input>
            </el-radio-group>
          </div>
        </el-col>
        <el-col :span="7">
          <div>
            <span>呼吸次数：</span>
            <el-input v-model="pgForm.respiratory_function_input2" placeholder="" ></el-input>
            <span> 次/分</span>
          </div>
        </el-col>
        <el-col :span="7">
          <div>
            <span>最长呼吸时间：</span>
            <el-input v-model="pgForm.respiratory_function_input3" placeholder=""></el-input>
            <span> 秒</span>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "respiratory_function",
  title: "呼吸功能",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data () {
    return {
      pgForm:{
        respiratory_function_radio1: '',
        respiratory_function_radio2: '',
        respiratory_function_input1: '',
        respiratory_function_input2: '',
        respiratory_function_input3: '',
      }
    };
  }
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}
.el-col {
  margin:10px 0;
}
.el-input {
  width: 50%;
}
.el-radio-group{
  padding: 10px 20px;
}
</style>
